import axios from "@/axios"

//登录接口
export function login(username, password){
    return axios.post("/login", {username, password})
}

//请求用户信息
export function getUserInfo() {
    return axios.post("/admin/user/info")
}

// 修改用户密码api
export function updateAdminPassword(data){
    return axios.post("/admin/password/update",data)
}